package com.yzy.yzy_crm.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yzy.yzy_crm.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-03-29
 */
@Repository
public interface CustomerMapper extends BaseMapper<Customer> {
    List<Customer> SelectCustmoer(int userId);
    Page SelectCustmoer(int userId,Page p);
    List<Customer> SelectOrder(int userId,int orderId);
    Page SelectOrder(int userId,int orderId,Page p);
    Page SelectAllCustmoer(Page p);
    int selectcount();
}
